package com.ruoyi.yey.goods;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.yey.config.mybatis.MybatisDateTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("yry_goods")
public class GoodsEntity implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "产品名称")
    private String goodsName;
    @ApiModelProperty(value = "产品价格")
    private double goodsPrice;
    @ApiModelProperty(value = "产品图片")
    private String goodsPicture;
    @ApiModelProperty(value = "产品描述")
    private String goodsDesc;
    @ApiModelProperty(value = "产品类型")
    private String goodsType;
    @ApiModelProperty(value = "底片数量")
    private Integer goodsNumber;
    @ApiModelProperty(value = "入册数量")
    private Integer goodsPutnumber;


    @TableField(fill = FieldFill.INSERT,value = "create_by")
    private String createBy;

    @TableField(fill = FieldFill.INSERT,value = "create_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_by")
    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "update_time",typeHandler = MybatisDateTypeHandler.class)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh")
    private Date updateTime;

    @TableField(value = "del_flag")
    @TableLogic(value = "0",delval = "1")
    private String delFlag = "0";

}
